package com.luomu.base.control.cookBook.address.controller;

import com.luomu.base.api.cookBook.address.bo.ExpressParseAddressReqBO;
import com.luomu.base.api.cookBook.address.bo.ExpressParseAddressRspBO;
import com.luomu.base.control.config.BizConfig.ExpressAddressServiceExt;
import com.luomu.base.control.cookBook.excel.controller.ExcelController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/apis/address")
public class addressController {

    protected Logger log = LoggerFactory.getLogger(ExcelController.class);

    @Autowired
    private ExpressAddressServiceExt expressAddressService;
    /**
     * 寄快递地址解析
     */
    @RequestMapping(value = "/expressParseAddress", method = RequestMethod.POST)
    ExpressParseAddressRspBO expressParseAddress(@RequestBody ExpressParseAddressReqBO req){
        return expressAddressService.expressParseAddress(req);
    }
}
